package com.bazhua.bazo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bazhua.bazo.repository.entity.ShopInfo;
import com.bazhua.bazo.repository.model.SaveShopModel;
import com.bazhua.bazo.repository.model.SearchShopModel;
import com.bazhua.bazo.repository.model.UpdateShopInfoModel;
import com.bazhua.bazo.repository.model.result.CommonResult;
import com.bazhua.bazo.repository.model.result.PageListResult;
import org.apache.ibatis.jdbc.Null;

import java.util.List;

public interface IShopInfoService extends IService<ShopInfo> {

    List<Long> getShopIds(Long areaId, Long street);

    CommonResult registerShop(SaveShopModel model);

    CommonResult updateShop(UpdateShopInfoModel model);

    CommonResult UpdateShopStatus(Long shopId, Integer status);

    PageListResult SearchShop(SearchShopModel model);

    CommonResult GetShopByOpenId(String openId);

    CommonResult GetShopById(Long Id);

    CommonResult CheckShopByOpenId(String openId);

    PageListResult SearchShopByAgentId(SearchShopModel model, Long agentId);
}
